package oa.hleast.xswl.service.place;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import oa.hleast.xswl.pojo.domain.place.CmsPlaceType;
import oa.hleast.xswl.pojo.form.place.CmsPlaceTypeForm;
import oa.hleast.xswl.pojo.vo.place.CmsPlaceTypeVo;
import oa.hleast.xswl.pojo.vo.place.ParentPlaceTypeVo;
import oa.hleast.xswl.pojo.vo.place.ShowPlaceTypeVo;

import java.util.List;

public interface IPlaceTypeService extends IService<CmsPlaceType> {
    Long add(CmsPlaceTypeForm cmsAppsIconForm);

    Long update(CmsPlaceTypeForm cmsAppsIconForm);

    Page<CmsPlaceTypeVo> pageList(Integer page, Integer limit, String typeName, Integer display, Integer typeLevel);

    boolean deleteByIds(List<String> asList);

    CmsPlaceTypeVo detail(Long id);

    List<ShowPlaceTypeVo> getShowPlaceTypeList(Long id);

    List<ParentPlaceTypeVo> getParent();

    List<CmsPlaceTypeVo> cascaderPlaceTypeList(String typeName);

    List<CmsPlaceTypeVo> finsShowPlaceTypeOnlyLast(Long parentsTypeId);

}
